package rhc.common.commons;

/**请求返回对象
 * @author lenovo1
 *
 */
public class ResponseObject<T> {

	/**
	 * 返回代码
	 */
	private int code;
	
	/**
	 * 返回消息
	 */
	private String message;
	
	/**
	 * 返回数据
	 */
	private T data;
	
	public ResponseObject(int code,String message){
		this(code,message,null);
	}
	
	public ResponseObject(int code,String message,T data){
		this.code=code;
		this.message=message;
		this.data=data;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}
	
	
}
